﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebAdmin/MasterPage_WebAdmin.master" AutoEventWireup="true" CodeBehind="AdsMgmtBlockPage.aspx.cs" Inherits="Ones.WebAdmin.AdsMgmtBlockPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server"> </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">
    <div class="row">
        <div class="col-md-12">
            <div class="widget">
                <div class="widget-header">
                    <i class="icon-arrow-down"></i>
                    <h3>
                        <b>Ads Block</b> Management.
                    </h3>
                </div>
                <div class="widget-content">
                    <div id="frmCategory" class="form-horizontal validate-needed-form required">
                        <fieldset>
                            <legend class="section">
                                Ads Block Info.
                            </legend>
                            <div class="control-group">
                                <div class="col-md-3">
                                    <label for="hint-field" class="control-label">
                                        Name
                                    </label>
                                </div>
                                <div class="col-md-9">
                                    <div class="form-group">
                                        <asp:TextBox ID="txtName" runat="server" placeholder="Required Field" class="form-control required"/>
                                    </div>
                                </div>
                            </div>
                            <div class="control-group">
                                <div class="col-md-3">
                                    <label for="hint-field" class="control-label">
                                        Description
                                    </label>
                                </div>
                                <div class="col-md-9">
                                    <div class="form-group">
                                        <asp:TextBox ID="txtDescr" runat="server" TextMode="MultiLine" class="form-control"  Rows="10" Style="width: 600px;"/>
                                    </div>
                                </div>
                            </div>
                            <div class="control-group">
                                <div class="col-md-3">
                                    <label for="hint-field" class="control-label">
                                        Width
                                    </label>
                                </div>
                                <div class="col-md-9">
                                    <div class="form-group">
                                        <asp:TextBox ID="txtWidth" runat="server" placeholder="Required Field" class="form-control required"/>
                                    </div>
                                </div>
                            </div>
                            <div class="control-group">
                                <div class="col-md-3">
                                    <label for="hint-field" class="control-label">
                                        Height
                                    </label>
                                </div>
                                <div class="col-md-9">
                                    <div class="form-group">
                                        <asp:TextBox ID="txtHeight" runat="server" placeholder="Required Field" class="form-control required"/>
                                    </div>
                                </div>
                            </div>

                            <%if (Session["cmd"] != null)
                            {
                                    %>
                                    <div class="form-group lable-padd">
                                        <label class="col-sm-3"> </label>
                                        <div class="col-sm-6 left-align">
                                            <div class="checkbox">
                                                <label>
                                                    <asp:CheckBox ID="chkActive" runat=server Text="Active"/>
                                                </label>
                                            </div>
                                        </div>
                                    </div>
                            <% }%>
                        </fieldset>
                        <div class="form-actions">
                            <div>
                                <%if (Session["cmd"] != null)
                                {
                                    if (Session["cmd"].ToString().Equals("edit"))
                                    { %>
                                        <asp:Button ID="btnUpdate" runat="server" Text="Save" OnClick="btnUpdate_Click" class="btn btn-warning"/>
                                    <% }
                                    if (Session["cmd"].ToString().Equals("delete"))
                                    { %>
                                        <asp:Button ID="btnDelete" runat="server" Text="Delete" OnClick="btnDelete_Click" class="btn btn-danger"/>
                                    <% }
                                }
                                else
                                { %>
                                    <asp:Button ID="btnAdd" runat="server" Text="Save" OnClick="btnAdd_Click" class="btn btn-success"/>
                                    <%
                                }%>

                                <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click" class="btn btn-default"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphScript" runat="server"> </asp:Content>
        